package model

func (MerchantStatistics) TableName() string {
	return "merchant_statistics"
}

type MerchantStatistics struct {
	ID            string `json:"id" gorm:"comment:自增ID"`
	ShopId        uint   `json:"shop_id" gorm:"comment:店铺ID"`
	SaleCount     string `json:"sale_count" gorm:"comment:在售数量"`
	CatCount      int    `json:"cat_count" gorm:"comment:原类商品数"`
	NoCatCount    string `json:"no_cat_count" gorm:"comment:转类商品数"`
	OtherCount    string `json:"other_count" gorm:"comment:垂直商品数"`
	ViewCount     string `json:"view_count" gorm:"comment:沉淀商品数（30天曝光量5000以上）"`
	NewPutOn      string `json:"new_put_on" gorm:"comment:近7日上新"`
	ItemCodeEmpty string `json:"item_code_empty" gorm:"comment:近7日上新-无商品货号"`
}

type MerchantCount struct {
	All       int    `json:"all" bson:"all"`
	Pre       int    `json:"pre" bson:"pre"`
	Publish   int    `json:"publish" bson:"publish"`
	Online    int    `json:"online" bson:"online"`
	Delete    int    `json:"delete" bson:"delete"`
	Quality   int    `json:"quality" bson:"quality"`
	ShopId    uint   `json:"shop_id" bson:"shop_id"`
	CountDate string `json:"count_date" bson:"count_date"`
}
